package com.ifengchao.job;

import com.ifengchao.service.DealZzyPlanService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 创意统计
 *
 * @author chen
 */
@Component(value = "dealZzyPlanJob")
public class DealZzyPlanJob {
    private static final Logger logger = Logger.getLogger(DealZzyPlanJob.class);
    @Autowired(required = true)
    private DealZzyPlanService dealZzyPlanService;

    /**
     * 获取创意趋势逻辑
     */
    public void executeTask() {
        System.out.println("-----进入智子云计划上下架周期job------");
        logger.info("-----进入智子云计划上下架周期job------");
        try {
            dealZzyPlanService.dealZzyPlan();
        } catch (Exception e) {
            logger.error("进入智子云计划上下架周期：", e);
        }
    }
}